import request from '@/utils/request'

const baseUrl = '/shoppingCart'

// 清空购物车
export function resetFood(params) {
  return request({
    url: baseUrl + '/resetFood',
    method: 'get',
    params: params
  })
}

// 保存已点列表
export function saveShoppingCart(params) {
  return request({
    url: baseUrl + '/save',
    method: 'post',
    data: params
  })
}

// 回显已点列表
export function getShoppingCartData(params) {
  return request({
    url: baseUrl + '/getData',
    method: 'get',
    params: params
  })
}
